package com.ifinc.common.socket.demo;

import com.ifinc.common.socket.client.ClientMessageFactory;
import com.ifinc.common.socket.client.ClientMessageHandler;
import com.ifinc.common.socket.client.ClientService;

/**
 * User: luotao
 * Date: 13-11-26
 * Time: 12:56
 */
public class NettyClientDemo {
    public static void main(String[] args) throws Exception {
        ClientMessageHandler clientMessageHandler = new ClientMessageHandler();

        ClientMessageFactory clientMessageFactory = new ClientMessageFactory();
        clientMessageFactory.setClientMessageHandler(clientMessageHandler);
        ClientService clientService = new ClientService();
        clientService.setClientMessageFactory(clientMessageFactory);
        clientService.sendData();

    }
}
